package com.lsu.component.homework;

import java.util.ArrayList;
import java.util.List;

/**
 * 树枝组织
 *
 * @Author wang suo
 * @Date 2020/12/22 0022 21:38
 * @Version 1.0
 */
public class Branch extends AbstractTissue {
    private List<AbstractTissue> tissues = new ArrayList<>();

    public Branch(String name) {
        super(name);
    }

    /**
     * 增加子组织
     *
     * @param tissue 组织
     */
    public void addSubTissue(AbstractTissue tissue) {
        tissues.add(tissue);
    }

    /**
     * 获取子组织
     *
     * @return 返回组织列表
     */
    public List<AbstractTissue> getTissues() {
        return tissues;
    }
}
